@echo off

echo serve start...

rem enter the root directory.
cd /d "%~dp0.."

echo running webpack-dev-server...
cmd /c webpack serve --config src/serve/webpack.config.js || goto :error

echo serve successful.
exit 0

:error
echo serve failed.
exit 1
